package com.ikun.admin.modules.gen.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 数据源 用来配置代码
 * </p>
 *
 * @author ${author}
 * @since 2024-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("gen_code_config")
@ApiModel(value = "CodeConfig对象", description = "数据源 用来配置代码")
public class CodeConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("配置名")
    private String configName;

    @ApiModelProperty("主键策略 0(自增) 1(无) 2(输入) 3(分配) 4(uuid)")
    private Integer idType;

    @ApiModelProperty(value = "根目录,一般情况不填使用默认根目录")
    private String rootPath;

    @ApiModelProperty(value = "模块名需要跟表前缀一样")
    private String module;


    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private Long creator;

    @ApiModelProperty(value = "修改人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updater;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除 (默认0 未删除 1删除)")
    private Integer deleted;


}
